package cn.kgc.vueair.controller;

import cn.kgc.vueair.pojo.District;
import cn.kgc.vueair.pojo.ResultEntity;
import cn.kgc.vueair.service.DistrictService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.w3c.dom.ls.LSInput;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class DistrictController {
    @Resource
    DistrictService districtService;
    @RequestMapping("/getDistrictList")
    public ResultEntity<List<District>> getdostrictList(){
        List<District> districtList=districtService.selectAll();
        return ResultEntity.successWithoutData(districtList);
    }
}
